<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
<title>列表</title>
<link rel="stylesheet" type="text/css" th:href="@{/css/style.css}"/>
<body>
<!-- Table goes in the document BODY -->
<table class="hovertable">
    <tr>
        <td colspan="8" th:text="#{users.title}">用户列表</td>
    </tr>
    <tr>
        <th th:text="#{users.index}">序号</th>
        <th th:text="#{users.username}">用户姓名</th>
        <th th:text="#{users.sex}">性别</th>
        <th th:text="#{users.age}">年龄</th>
        <th th:text="#{users.birthDate}">出生日期</th>
    </tr>
    <tr th:each="user,userStart:${list}">
        <td th:text="${userStart.index+1}"></td>
        <td th:text="${user.username}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${user.sex}"></td>
        <td th:text="${user.birthDate}"></td>
    </tr>

</table>
<a id="li" class="btn btn-sm" th:href="@{/user/all(l='zh_CN')}">中文</a>

<a class="btn btn-sm" th:href="@{/user/all(l='en_US')}">English</a>

</body>
</html>